import random
n = input()
print n
for i in range(n):
	print random.randint(1, 2048),
